package com.dbb.entity

import com.dbb.entity.company.Company
import java.util.ArrayList;
import java.util.List;

class Product {

	String ref;
	String cref;
	String sref;
	String name;
	String nameEn;
	Integer proNum;
	Photo logo
	
	String status;
	
	Boolean deleted = false;
	
	static hasMany = [
		colors : Color,
		sizes : Size,
		priceLogs : PriceLog,
		pics : Photo,
		comments : ProComment,
		suppliers : Company,
		customers : Company,
		tags : Tag,
		
		]
	
    static constraints = {
		ref blank : false
		name blank : false
    }
	
	String toString() {
		return ref + "-" + name
	}
}
